package cn.fengshenghospital.service.impl;

import cn.fengshenghospital.entity.Lead;
import cn.fengshenghospital.mapper.LeadMapper;
import cn.fengshenghospital.service.LeadService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("leadService")
public class LeadServiceImpl implements LeadService {
    @Autowired
    private LeadMapper leadMapper;
    @Override
    public List<Lead> queryAllLead() {
        return leadMapper.queryAllLead();
    }

    @Override
    public Lead queryLeadById(int id) {
        return leadMapper.queryLeadById(id);
    }
}
